package chixing.day14.work;

public class Product {
    private int proId;
    private String name;
    private double price;
    public Product(String name, double price, int proId) {
        this.name = name;
        this.price = price;
        this.proId = proId;
    }
    public Product() {
    }

    public int getProId() {
        return proId;
    }

    public void setProId(int proId) {
        this.proId = proId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Product{" +
                "proId=" + proId +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
